<%
var containerParam = {
	title: '道具管理',
	currentMenu: 'itemMgr',
	jsArray: [ctxPath + '/js/item/form.js'],
	breadcrumbMap: {
		'首页': ctxPath + '/',
		'道具管理': ctxPath + '/item/list',
		'添加/编辑': null
	}
};
layout('/common/_website_container.html', containerParam){
%>
<div class="layui-card">
	<div class="layui-card-body padding-15">
		<form class="layui-form" lay-filter="form">
			<#formhidden name="id"/>
			<#formselect label="*类型" name="type" value="${entity.type.value!}" itemValue="value" itemDesc="desc" items="${@ItemType.values()}" verify="required"/>
			<#formselect label="*稀有度" name="rare" value="${entity.rare.value!}" itemValue="value" itemDesc="desc" items="${@ItemRare.values()}" verify="required"/>
			<#forminput label="*名称" name="name" verify="required"/>
			<#forminput label="日文名称" name="jName"/>
			<#forminput label="英文名称" name="eName"/>
			<#forminput label="别称" name="nickname"/>
			<#formimage label="图片" id="image" name="image"/>
			<#formtextarea label="描述" name="description"/>
			<#forminput label="排序" name="sort" verify="integer"/>
			<#formsubmit/>
		</form>
	</div>
</div>
<% } %>
